package com.atXiao.entity;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;


public class StreamDemo {

    public static List<Author> getList(){
        Author author = new Author(1l, "蒙多", 33, "蒙多想去哪就去哪", null);
        Author author2 = new Author(2l, "亚索", 15, "亚索想去哪就去哪", null);
        Author author3 = new Author(3l, "剑圣", 18, "剑圣想去哪就去哪", null);
        Author author4 = new Author(4l, "赵信", 22, "赵信想去哪就去哪", null);
        Author author5 = new Author(5l, "皇子", 43, "皇子想去哪就去哪", null);


        ArrayList<Book> books1 = new ArrayList<>();
        ArrayList<Book> books2 = new ArrayList<>();
        ArrayList<Book> books3 = new ArrayList<>();


        books1.add(new Book(1l,"第一本书","哲学",88));
        books1.add(new Book(1l,"第一本书","哲学",88));
        books1.add(new Book(1l,"第一本书","哲学,爱情",88));
        books1.add(new Book(1l,"第一本书","哲学",88));
        books1.add(new Book(2l,"第2本书","爱情",90));
        books1.add(new Book(3l,"第2本书","玄学",75));
        books2.add(new Book(4l,"第3本书","武侠",30));
        books2.add(new Book(5l,"第3本书","武侠",54));
        books2.add(new Book(6l,"第6本书","武侠",30));
        books3.add(new Book(7l,"第7本书","武侠,小说",23));
        books3.add(new Book(8l,"第8本书","爱情,科幻",86));
        books3.add(new Book(9l,"第9本书","武侠",12));
        books3.add(new Book(10l,"第10本书","武侠",25));



        author.setBooks(books1);
        author2.setBooks(books2);
        author3.setBooks(books3);
        author4.setBooks(books1);
        author5.setBooks(books2);

        List<Author> authors = Arrays.asList(author, author5, author2, author3, author4);
        return authors;
    }


    public void testDemo(){



    }



}
